package demo4;

/**
 * 员工类
 */
public class Emp {

    private int id;
    private String name;
    private Dep dep;


    public Emp(int id, String name, Dep dep) {
        this.id = id;
        this.name = name;
        this.dep = dep;
    }

    public Emp() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Dep getDep() {
        return dep;
    }

    public void setDep(Dep dep) {
        this.dep = dep;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", dep=" + dep +
                '}';
    }
}
